<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %>

<?xml version="1.0" encoding="ISO-8859-15"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
	<head>
		<title>
			Formulaire
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
		<link rel="stylesheet" href="client.css" type="text/css" />
	</head>
	<body>
		<div id="contenu">
		    <h1>Login</h1>
		 
		    <c:if test="${not empty param.login_error}">
		        Erreur de login :<br/>
		        <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.
		    </c:if>
		 
		    <form name="f" action="<c:url value="j_spring_security_check"/>" method="post">
		    	<fieldset>
					<legend>Authentification</legend>
			      	<table>
				        <tr><td>Login : </td><td><input type="text" name="j_username" value="<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>"/></td></tr>
				        <tr><td>Mot de passe : </td><td><input type="password" name="j_password" /></td></tr>
				 
				        <tr><td colspan="2"><input name="submit" type="submit" /></td></tr>
				        <tr><td colspan="2"><input name="reset" type="reset" /></td></tr>
				    </table>
				</fieldset>	    
		    </form>
		  </div> 
  </body>
</html>